package net.dl.ss.service;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import net.dl.ss.dao.CoupleDao;
import net.dl.ss.dao.DanceDao;
import net.dl.ss.domain.Dance;

public class FinalProtocolManager {
	private DanceDao danceDao;
	private CoupleDao coupleDao;

	public void setDanceDao(DanceDao danceDao) {
		this.danceDao=danceDao;
	}

	public void setCoupleDao(CoupleDao coupleDao) {
		this.coupleDao=coupleDao;
	}
	
	public Map getModel() {
		Map model = new HashMap();
		model.put("eventTitle", "Blackpool Nights. IDSF Open. Results");
		model.put("category", "Jr.+Senior St");
		model.put("couplesNumber", "10");
		model.put("clubsNumber", "6");
		model.put("citiesNumber", "4");
		model.put("masterOfCeremony", "qwerqwer qwertqer (qwerwert)");
		model.put("comissar", "qwerqwer qwerewre");
		model.put("sportSecretary", "ewwetwret  gdfhdhdfhdgh");
		
		
		model.put("dataSource", getData());
		return model;
	}
	
	private List<Dance> getData() {
		return this.danceDao.list(Dance.class);
	}
}
